Adwaita: shrink scroolbars
authorLapo Calamandrei <calamandrei@gmail.com>
Sat, 5 Mar 2016 01:01:16 +0000 (02:01 +0100)
committerLapo Calamandrei <calamandrei@gmail.com>
Sat, 5 Mar 2016 01:01:16 +0000 (02:01 +0100)
erroneusly pushed 15px scrollbars with the previous commit, back
to 13px now.

gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css

index 551e6f2b564ec08502b8d04f44ba7c4f491e9a72..db842a8d33705be1791c75a9d35033d2d1fdab9e 100644 (file)
@@ -2044,8 +2044,8 @@ scrollbar {
 
   // slider
   slider {
-    min-width: 8px;
-    min-height: 8px;
+    min-width: 6px;
+    min-height: 6px;
     margin: -1px;
     border: 4px solid transparent;
     border-radius: 8px;
@@ -2127,8 +2127,8 @@ scrollbar {
   // button styling
   button {
     padding: 0;
-    min-width: 14px;
-    min-height: 14px;
+    min-width: 12px;
+    min-height: 12px;
     border-style: none;
     border-radius: 0;
     transition-property: min-height, min-width, color;
index ab033bdd4289bf4637ba695a465968d59afe1b5b..2323131fd5e44c0d1bef5304fd3852ed94643ebf 100644 (file)
@@ -2178,11 +2178,15 @@ notebook > stack:not(:only-child) {
  * Scrollbars *
  **************/
 scrollbar {
+  /*
+    // disable steppers
+    @at-root * {
+      -GtkScrollbar-has-backward-stepper: false;
+      -GtkScrollbar-has-forward-stepper: false;
+    }
+  */
   background-color: #313434;
   transition: 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94); }
-  * {
-    -GtkScrollbar-has-backward-stepper: false;
-    -GtkScrollbar-has-forward-stepper: false; }
   scrollbar.top {
     border-bottom: 1px solid #1c1f1f; }
   scrollbar.bottom {
@@ -2195,8 +2199,8 @@ scrollbar {
     background-color: #323737;
     border-color: #1f2222; }
   scrollbar slider {
-    min-width: 8px;
-    min-height: 8px;
+    min-width: 6px;
+    min-height: 6px;
     margin: -1px;
     border: 4px solid transparent;
     border-radius: 8px;
@@ -2252,8 +2256,8 @@ scrollbar {
     min-height: 40px; }
   scrollbar button {
     padding: 0;
-    min-width: 14px;
-    min-height: 14px;
+    min-width: 12px;
+    min-height: 12px;
     border-style: none;
     border-radius: 0;
     transition-property: min-height, min-width, color;
index aa42248dcff5a524ef5454370529ad796421ee24..b3284a079c1e584cfa773168af1495d25a528873 100644 (file)
@@ -2188,11 +2188,15 @@ notebook > stack:not(:only-child) {
  * Scrollbars *
  **************/
 scrollbar {
+  /*
+    // disable steppers
+    @at-root * {
+      -GtkScrollbar-has-backward-stepper: false;
+      -GtkScrollbar-has-forward-stepper: false;
+    }
+  */
   background-color: #c3c4c4;
   transition: 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94); }
-  * {
-    -GtkScrollbar-has-backward-stepper: false;
-    -GtkScrollbar-has-forward-stepper: false; }
   scrollbar.top {
     border-bottom: 1px solid #9d9d99; }
   scrollbar.bottom {
@@ -2205,8 +2209,8 @@ scrollbar {
     background-color: #e1e1df;
     border-color: #a5a5a1; }
   scrollbar slider {
-    min-width: 8px;
-    min-height: 8px;
+    min-width: 6px;
+    min-height: 6px;
     margin: -1px;
     border: 4px solid transparent;
     border-radius: 8px;
@@ -2262,8 +2266,8 @@ scrollbar {
     min-height: 40px; }
   scrollbar button {
     padding: 0;
-    min-width: 14px;
-    min-height: 14px;
+    min-width: 12px;
+    min-height: 12px;
     border-style: none;
     border-radius: 0;
     transition-property: min-height, min-width, color;